import request from '@/router/axios';
import website from '@/config/website'
//列表
export const toScoreList = (current, size, equipment) => {
  return request({
    url: '/api/blade-human/oachieve_performance/weekrepotsitem/page',
    method: 'get',
    params: {
      current,
      size,
      ...equipment
    }
  })
}



//打分
export const toScoreUpdate = (data) => {
  return request({
    url: '/api/blade-human/oachieve_performance/weekrepotsitem/update',
    method: 'post',
    data
  })
}


//导出
export const toScoreExport = (userId) => {
  window.location.href = `${website.exportUrl}/human-achieve/weekrepotsitem/ExportExcel?userId=${userId}`
}
